﻿# CMakeList.txt : CMake project for wxWidgetsCMakeProject, include source and define
# project specific logic here.
#

# Add source to this project's executable.
add_executable (wxWidgetsCMakeProject WIN32 "wxWidgetsCMakeProject.cpp" "wxWidgetsCMakeProject.h")

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET wxWidgetsCMakeProject PROPERTY CXX_STANDARD 20)
endif()

# TODO: Add tests and install targets if needed.

set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")

#set(wxBUILD_SHARED OFF)
#find_package(wxWidgets REQUIRED)
message(WARNING "wxWidgets: ${wxWidgets}")
find_package(wxWidgets REQUIRED COMPONENTS net core base)

include(${wxWidgets_USE_FILE})
target_link_libraries(wxWidgetsCMakeProject ${wxWidgets_LIBRARIES})
